﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LingDong.ConfigProvider
{
    public class SentenceSplitter
    {
        public static string[] Get()
        {
            if (splitter == null)
            {
                GetSplitter();
            }
            return splitter;
        }

        private static void GetSplitter()
        {
            string file = ConfigCommon.Default.ConfigDir +
                ConfigCommon.Default.SentenceSplitterFName;
            splitter = GetTxtAsStringArray.Get(file);
        }

        private static string[] splitter;
    }
}
